#include <stdio.h> 
void main(){
	int n,i=0;
	scanf("%d",&n);
	for(i=0;i<n;i++){
		getchar();
		double h,w;
		scanf("%lf %lf",&h,&w);
		double temp = (h-100)*0.9*2;
		double min =  temp*0.1;
		
		if(fabs(w-temp) < min ){
	 		printf("You are wan mei!\n");
		}else if(temp > w){
			printf("You are tai shou le!\n");
		} else{
		    printf("You are tai pang le!\n");
		}
	}
}
